@echo off
FOR /L %%I IN (0,1,9) DO (
    md %%I
    move 0000%%I0?.png %%I
    cd %%I
    FOR /L %%J IN (0,1,9) DO ren 0000%%I0%%J.png %%J.png
    cd..
)
